
#!/bin/bash



PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/root/.local/bin:/home/root/bin

a=`lsof -i:8081|wc -l`

echo $a

echo $PATH

echo `whoami`

if [ $a -ne 2 ]

then

	cd /home/app/glt-admin-api

	nohup npm run dev >> logs/run.log 2>&1 &

else

	echo "alive"

fi
